package hied.cleaning;

public class CorrectFormInfo implements Comparable<CorrectFormInfo> {
	private String form;
	private double avg;
	private double stDev;

	public CorrectFormInfo(String form, double avg, double stDev) {
		this.form = form;
		this.avg = avg;
		this.stDev = stDev;
	}

	public String getForm() {
		return form;
	}

	public double getAvg() {
		return avg;
	}

	public double getStDev() {
		return stDev;
	}

	@Override
	public String toString() {
		return this.form + " " + this.avg + " " + this.stDev;
	}

	@Override
	public int compareTo(CorrectFormInfo o) {
		if (avg < o.avg) {
			return -1;
		} else if (avg == o.avg) {
			return 0;
		} else {
			return 1;
		}
	}
}
